<?php

  class allSameCategory extends Category
  {
    public function __construct($name, Dice $dice)
    {
      parent::__construct($name, $dice);
      
      $diceCount = $dice->getValueCount();
      if ($diceCount[0] == YachtDice::$numDice) {
        $this->score = 50;
      } else {
        $this->score = 0;
      }
    }
  }
  
?>